package com.castle.fortress.admin.argFlow.constants;

/**
 * RAGFlow API常量类
 * 定义API路径、错误码等常量
 */
public class RAGFlowApiConstants {
    
    /**
     * API基础路径
     */
    public static final String API_BASE_PATH = "/api/v1";
    
    /**
     * 数据集API路径
     */
    public static final String DATASETS_PATH = API_BASE_PATH + "/datasets";
    
    /**
     * 文档API路径
     */
    public static final String DOCUMENTS_PATH = "/documents";
    
    /**
     * 分块API路径
     */
    public static final String CHUNKS_PATH = "/chunks";
    
    /**
     * 聊天助手API路径
     */
    public static final String ASSISTANTS_PATH = API_BASE_PATH + "/assistants";
    
    /**
     * 会话API路径
     */
    public static final String THREADS_PATH = "/threads";
    
    /**
     * 代理API路径
     */
    public static final String AGENTS_PATH = API_BASE_PATH + "/agents";
    
    /**
     * 聊天API路径
     */
    public static final String CHATS_PATH = API_BASE_PATH + "/chats";
    
    /**
     * 会话API路径
     */
    public static final String SESSIONS_PATH = "/sessions";
    
    /**
     * 检索块API路径
     */
    public static final String SEARCH_PATH = "/search";
    
    /**
     * 消息API路径
     */
    public static final String MESSAGES_PATH = "/messages";
    
    /**
     * 聊天完成API路径
     */
    public static final String COMPLETIONS_PATH = "/completions";
    
    /**
     * 租户API路径
     */
    public static final String TENANT_PATH = API_BASE_PATH + "/tenant";
    
    /**
     * 成功码
     */
    public static final int SUCCESS_CODE = 0;
    
    /**
     * 错误码-通用错误
     */
    public static final int ERROR_CODE_COMMON = 102;
    
    /**
     * 错误码-参数错误
     */
    public static final int ERROR_CODE_PARAM = 103;
} 